
class PageList(object):
    def __init__(self, total, data):
        self.total = total
        self.data = data

    def setTotal(self, total):
        self.total = total

    def setData(self, data):
        self.data = data

    def addItem(self, item):
        if not self.data:
            self.data = []
        self.data.append(item)